<%@ page language="java" pageEncoding="UTF-8"%><%@ taglib prefix="s" uri="/struts-tags"%>
<div id="leftmenu" class="box_blue">
	<div class="box_title">
		<s:if test="category==null">类别</s:if>
		<s:else>
			<s:if test="category.parent!=null"><a href="#" onclick="javascript:gointoDeepCate('<s:property value="category.parent.id" />');"> << </a></s:if>
			<s:property value="category.name" />
		</s:else>
	</div>
	<s:set name="menu_index" value="0" />
	<div class="leftmenu">
		<ul>
			<s:iterator value="categories" status="status">
				<s:set name="category" value="top" />
				<s:if test="#menu_index<20">
					<li id="level_<s:property value="#menu_index"/>">
						<a href="#" onclick="javascript:gointoDeepCate('<s:property value="#category.id" />');"><s:property value="#category.name" /> </a>
					</li>
				</s:if>
				<s:set name="menu_index" value="#menu_index+1" />
			</s:iterator>
		</ul>
	</div>
	<script type="text/javascript">
	function gointoDeepCate(cateid){jtool.goto(baseListUrl+"?cateid="+cateid);}
	</script>
</div>